package cn.arikeky.system.mapper;

import cn.arikeky.system.domain.Permission;
import cn.arikeky.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author arikeky
 * @since 2022-10-24
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    Permission findBySn(String sn);

    void addMiddle(@Param("rid") Long id, @Param("permissions") List<Long> permissions);

    void deleteMiddle(Long id);

    List<String> findByLogininfoId(Long logininfoId);

    void findPByRoleId(List<Long> roleIds);
}
